import request from "@/utils/index";

export const addManage = (param) => {
  return request({
    method:"POST",
    url:'/admin/sub/add',
    data:{
      ...param
    }
  })
}

export const listManage = (param) => {
  return request({
    method:"POST",
    url:'/admin/sub/selShow',
    data:{
      ...param
    }
  })
}

export const getManage = (id) => {
  return request({
    method:"GET",
    url:'/admin/sub/upd/'+id
  })
}

export const updateManage = (param) => {
  console.log(param)
  return request({
    method:"POST",
    url:'/admin/sub/updSubregion',
    data:{
      ...param
    }
  })
}

export const delManage = (ids) => {
  return request({
    method:'get',
    url:'/admin/sub/del/'+ids
  })
}

//文件下载
export const download = () => {
  return request({
    method: 'get',
    url: 'admin/fileDown',
  })
}